<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入element-ui样式 -->
    <link rel="stylesheet" href="../../../plugins/element-ui/index.css">

</head>
<body>
<div id="app">

    <el-row>
        <el-button @click="down" type="danger">危险按钮</el-button>
    </el-row>


</div>


<script src="../../../plugins/vue/vue.js"></script>

<!-- 引入element-ui组件库 -->
<script src="../../../plugins/element-ui/index.js"></script>

<!-- 引入axios -->
<script src="../../../plugins/axios/axios.min.js"></script>

<script>
    new Vue({
        el:'#app',    //element
        data:{
            filename:"2. 野夏天.url--11739"
        },
        methods:{
            down() {
                // `/files/downloadFile?name=${this.filename}`

                // axios.get("/files/downloadFile2?name="+this.filename).then((res)=> {
                //
                // })
                window.location.href="http://localhost:8080/files/downloadFile2?name="+this.filename

            },

            getImage (image) {
                this.imageUrl1= `/files/downloadFile?name=${image}`
            },


        }

    })
</script>
</body>
</html>